﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Defaults.cshtml";
}

 <div ng-app="app" ng-controller="DemoCtrl">
        
        <h1>danh sách đạo pháp</h1>
     <input type="button" value="Thêm mới" ng-click="appDialog(false,null)" />
     <table class="table table-striped table-bordered bootstrap-datatable datatable">
            <tr>
                <th>Tên</th>
                <th>Actions</th>
            </tr>
            <tr ng-repeat="task in tasks | orderBy : 'tENCV'">
                <td> {{task.tENDP}}</td>
                <td class="center">
                    <a class="btn btn-info" ng-click="appDialog(true,task)">
										<i class="icon-edit icon-white"></i>  
										Sửa                                            
									</a>
									<a class="btn btn-danger" ng-click="delete(task.iD)">
										<i class="icon-trash icon-white"></i> 
										Xóa
									</a>
                </td>     
                
            </tr>
        </table>

        <div ng-controller="DialogCtrl">
            <jqdialog dialog-name="App" title="'Đạo pháp'"
                      auto-open="false" width="400" height="300"
                      on-open="onOpen" buttons="{'Lưu': onOk, 'Hủy': onCancel, 'Đóng': 'close' }"
                      args-to-scope="true"
                      before-close="beforeClose">
                <h3>Thông tin</h3>
                <label for="fullName">Tên :</label>
                <input id="tENCV" ng-model="obj.tENDP"/><br/>
                {{ vu.tENVU }}
            </jqdialog>
        </div>

 </div>
<script src="~/Content/lib/jquery-1.8.3.js"></script>
<script src="~/Content/lib/jquery-ui.js"></script>
<script src="~/Content/lib/angular.js"></script>
<script src="~/Content/lib/module.js"></script>
<script src="~/Content/js/jqdialog/jqdialog.js"></script>
<script src="~/Content/md/dp/dp.js"></script>
